Skip to main content

FoldPair

FoldPair[f,y0,list] gives the last element of FoldPairList[f,y0,list].

FoldPair[f,y0,list,g] gives the last element of FoldPairList[f,y0,list,g].

FoldPair[f,{a0,a1,a2,…}] is equivalent to FoldPair[f,a0,{a1,a2,…}].

Please visit the official Wolfram Language Reference for more details and examples on core symbols.